package com.vdongchina.thread.base.demo.threadpoolweb;

import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.net.Socket;

/**
 * 使用ab工具去测试并发
 */
public class SimpleHttpClient {

    public static void main(String[] args) throws IOException {
        Writer writer = null;
        Socket client = new Socket("127.0.0.1", 8080);
        writer = new OutputStreamWriter(client.getOutputStream());
        writer.write("2.png");
        writer.flush();
    }
}
